package ${bean_pkg};
import java.io.Serializable;
import javax.validation.constraints.Pattern;
import javax.validation.constraints.Size;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
<#list bean_property as p>
    <#if   p.javaTypeDesc=="java.util.Date">
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;<#break>
    </#if>
</#list>

@ApiModel("${bean_desc}")
@Data
public class ${bean_type} implements Serializable{
private static final long serialVersionUID = 1L;
<#list bean_property as p>
    @ApiModelProperty("${p.remark!}")
    <#if p.javaTypeDesc=="java.util.Date">
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    <#elseif (p.javaTypeDesc=="java.lang.Long"||p.javaTypeDesc=="java.lang.Integer"||p.javaTypeDesc=="java.lang.Double")>
    @Size(max=${p.length})
    <#else>
    </#if>
    private ${p.javaTypeDesc} ${p.fields?uncap_first};

</#list>
}
